
using System.Web.UI.HtmlControls;
using System;
using System.Configuration;
using System.Drawing;
using System.Data;
using System.Web.UI.WebControls;
using Microsoft.VisualBasic;
using System.Collections;
using System.Web.UI;
using System.Web;


using System.Resources;

namespace smasb2b
{
	public class ErrControler : BasePage
	{
		
#region  Web Form 設計工具產生的程式碼
		
		//此為 Web Form 設計工具所需的呼叫。
		[System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent()
		{
			
		}
		protected ddscControlLibrary.SubmitButtonCtrl btnRELOGIN;
		protected ddscControlLibrary.ClientButtonCtrl btnCLOSE;
		protected System.Web.UI.WebControls.Label lblErrMessag;
		
		//注意: 下列預留位置宣告是 Web Form 設計工具需要的項目。
		//請勿刪除或移動它。
		private System.Object designerPlaceholderDeclaration;
		
		private void Page_Init(System.Object sender, System.EventArgs e)
		{
			//CODEGEN: 此為 Web Form 設計工具所需的方法呼叫
			//請勿使用程式碼編輯器進行修改。
			InitializeComponent();
		}
		
#endregion
		
		private void Page_Load(System.Object sender, System.EventArgs e)
		{
			
			//Dim OnUser As Employee = CType(LoginUser(), Employee)
			//Dim rm As ResourceManager = New ResourceManager("SMAS." + OnUser.UseLanguage.ToLower, System.Reflection.Assembly.GetExecutingAssembly())
			//lblErrMessag.Text = rm.GetString("MSG" + Request("ErrCode"))
			//Select Case Request("ErrCode")
			//    Case "777"
			//        System.Web.Security.FormsAuthentication.SignOut()
			//        btnRELOGIN.Visible = False
			//    Case "666"
			//        System.Web.Security.FormsAuthentication.SignOut()
			//        btnCLOSE.Visible = False
			//End Select
			
		}
		
		private void btnRELOGIN_Click(System.Object sender, System.EventArgs e)
		{
			Response.Redirect(System.Web.Security.FormsAuthentication.GetRedirectUrl("smas", false));
		}
	}
	
}
